import mysql.connector as m


# 创建一个 类


def get_sql_connect():
    con = None
    try:
        con = m.connect(
            host='127.0.0.1',
            port='3306',
            user="root",
            password='123456',
            database='hotel'
        )

    except m.Error as e:
        print(str(e))

    return con
